package libs.yzx.zaza.za;

import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.FrameLayout;

import java.util.WeakHashMap;

/**
 * Created by Administrator on 2016/7/19.
 */
public class FatherView extends FrameLayout {
    public FatherView(Context context) {
        super(context);
    }

    public FatherView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }


    //


    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.e("--->>", "f  dispatch  -----" + ev.getAction());

        WeakHashMap<String, String> map = new WeakHashMap<>();

        return super.dispatchTouchEvent(ev);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        Log.e("--->>", "f  intercept   -----" + ev.getAction());
        if (ev.getAction() == MotionEvent.ACTION_DOWN)
            return false;
        return false;
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        Log.e("--->>", "f   touch    -----" + event.getAction());
        return super.onTouchEvent(event);
    }

}
